<template>
  <h1>
    {{count}}
  </h1>
</template>

<script>
import PubSud from 'pubsub-js'
export default {
    name: 'Hello',
    data(){
        return {
            count: 0,
        }
    },
    mounted(){
        PubSud.subscribe("count", (_,count)=>{
            this.count=count;
        })
    }

}
</script>

<style>

</style>